From: Owen Taylor Date: Fri, 31 Oct 2008 18:29:42 +0000 (+0000) Subject: Clean up initial appearance a bit X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~11627 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=0cea92e46affb7c9b5ca933cd6bd42b66b6a6f0c;p=gnome-shell.git Clean up initial appearance a bit Set a less strange background color than white and remove the "Yessir. The compositor is running" message from the overlay. svn path=/trunk/; revision=13 --- diff --git a/js/ui/main.js b/js/ui/main.js index e4e0f9b20..150e1a9c0 100644 --- a/js/ui/main.js +++ b/js/ui/main.js @@ -5,8 +5,24 @@ const Clutter = imports.gi.Clutter; const Panel = imports.ui.panel; +const DEFAULT_BACKGROUND_COLOR = new Clutter.Color(); +DEFAULT_BACKGROUND_COLOR.from_pixel(0x2266bbff); + let panel = null; function start() { + let global = Shell.global_get(); + + // The background color really only matters if there is no desktop + // window (say, nautilus) running. We set it mostly so things look good + // when we are running inside Xephyr. + global.stage.color = DEFAULT_BACKGROUND_COLOR; + + // Mutter currently hardcodes putting "Yessir. The compositor is running"" + // in the overlay. Clear that out. + children = global.overlay_group.get_children(); + for (let i = 0; i < children.length; i++) + children[i].destroy(); + panel = new Panel.Panel(); }